home *** CD-ROM | disk | FTP | other *** search
- /*
- cvbounce.cpp
-
- Bouncing String class--used by Bouncing About box
-
- C++/Views 2.0 Demo
- Copyright (c) 1992, by Liant Software Corp.
- ALL RIGHTS RESERVED.
-
- Revision History:
- -----------------
- */
-
- #include "cvbounce.h"
-
- defineClass(Bouncer, VObject)
-
- Bouncer::Bouncer()
- {
- ;
- }
-
- Bouncer::Bouncer(char *s, int x, int y) : str(s)
- {
- curX = x;
- curY = y;
- oldY = -10;
- oldY2 = -10;
- yVel = 0;
- }
-
- Bouncer::~Bouncer()
- {
- ;
- }
-
- boolean Bouncer::free()
- {
- delete this;
- return(TRUE);
- }
-